package com.ruoyi.operation.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 订单信息对象 order_info
 *
 * @author ruoyi
 * @date 2025-05-07
 */
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long yhid;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String yhmc;

    /** 订单号 */
    @Excel(name = "订单号")
    private String ddh;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String ddzt;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String spmc;

    /** 商品id */
    @Excel(name = "商品id")
    private Long spid;

    /** 学校名称 */
    @Excel(name = "学校名称")
    @NotBlank(message = "学校名称不能为空")
    private String xxmc;

    /** 学校id */
    @Excel(name = "学校id")
    private Long xxid;

    /** 账号名称 */
    @Excel(name = "账号名称")
    @NotBlank(message = "账号名称不能为空")
    private String zhmc;

    /** 账号密码 */
    @Excel(name = "账号密码")
    @NotBlank(message = "账号密码不能为空")
    private String zhmm;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cjsj;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gxsj;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String bz;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setYhid(Long yhid)
    {
        this.yhid = yhid;
    }

    public Long getYhid()
    {
        return yhid;
    }

    public void setYhmc(String yhmc)
    {
        this.yhmc = yhmc;
    }

    public String getYhmc()
    {
        return yhmc;
    }

    public void setDdh(String ddh)
    {
        this.ddh = ddh;
    }

    public String getDdh()
    {
        return ddh;
    }

    public void setDdzt(String ddzt)
    {
        this.ddzt = ddzt;
    }

    public String getDdzt()
    {
        return ddzt;
    }

    public void setSpmc(String spmc)
    {
        this.spmc = spmc;
    }

    public String getSpmc()
    {
        return spmc;
    }

    public void setSpid(Long spid)
    {
        this.spid = spid;
    }

    public Long getSpid()
    {
        return spid;
    }

    public void setXxmc(String xxmc)
    {
        this.xxmc = xxmc;
    }

    public String getXxmc()
    {
        return xxmc;
    }

    public void setXxid(Long xxid)
    {
        this.xxid = xxid;
    }

    public Long getXxid()
    {
        return xxid;
    }

    public void setZhmc(String zhmc)
    {
        this.zhmc = zhmc;
    }

    public String getZhmc()
    {
        return zhmc;
    }

    public void setZhmm(String zhmm)
    {
        this.zhmm = zhmm;
    }

    public String getZhmm()
    {
        return zhmm;
    }

    public void setCjsj(Date cjsj)
    {
        this.cjsj = cjsj;
    }

    public Date getCjsj()
    {
        return cjsj;
    }

    public void setGxsj(Date gxsj)
    {
        this.gxsj = gxsj;
    }

    public Date getGxsj()
    {
        return gxsj;
    }

    public void setBz(String bz)
    {
        this.bz = bz;
    }

    public String getBz()
    {
        return bz;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("yhid", getYhid())
                .append("yhmc", getYhmc())
                .append("ddh", getDdh())
                .append("ddzt", getDdzt())
                .append("spmc", getSpmc())
                .append("spid", getSpid())
                .append("xxmc", getXxmc())
                .append("xxid", getXxid())
                .append("zhmc", getZhmc())
                .append("zhmm", getZhmm())
                .append("cjsj", getCjsj())
                .append("gxsj", getGxsj())
                .append("bz", getBz())
                .toString();
    }
}
